{include file="common/comm_header" /}

<body>

<div class="layui-anim layui-anim-up">
    <div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="">网站管理</a>
        <a href="">网站列表</a>
      </span>
        <a class="layui-btn layui-btn-lg" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:window.location.reload();" title="刷新">
            <i class="layui-icon" style="line-height:40px">刷新</i></a>
    </div>
    <div class="x-body">
        <div class="layui-row">
            <form class="layui-form layui-col-md12 x-so">
                <div class="layui-input-inline">
                    <select name="contrller" lay-verify="">
                        <option value="0">全部</option>
                        {volist name="classDataList" id="vo"}
                        <option value="{$vo.assort_id}" {eq name="$vo.assort_id" value="$contrller"}selected{/eq}>{$vo.assort_title}</option>
                        {/volist}
                    </select>
                </div>
                <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
            </form>
        </div>
        <xblock>
            <button class="layui-btn" onclick="x_admin_show('添加网站','/{$Think.ADMIN_ROUT_PREFIX}/web-add',800,700)"><i class="layui-icon"></i>添加</button>
        </xblock>
        <table class="layui-table">
            <thead>
            <tr>
                <th>网站ID</th>
                <th>分类标题</th>
                <th>网站标题</th>
                <th>网站URL</th>
                <th>网站描述</th>
                <th>网站排序</th>
                <th>网站显示状态</th>
                <th>创建时间</th>
                <th>修改时间</th>
                <th>操作</th></tr>
            </thead>
            <tbody>
            {if condition="empty($indexDataList->getCollection()->toArray())"}
            <tr>
                <td colspan="10" style="text-align: center;">
                    <h1><font color="#8b0000">暂时没有任何数据</font></h1>
                </td>
            </tr>
            {else /}
            {volist name="indexDataList" id="vo"}
            <tr>
                <td>{$vo.web_id}</td>
                <td>{$vo.assort_title}</td>
                <td>{$vo.web_title}</td>
                <td>{$vo.web_url}</td>
                <td>{$vo.web_description}</td>
                <td>{$vo.web_sort}</td>
                <td class="td-status">
                    {eq name="$vo.web_status" value="1"}
                    <span class="layui-btn layui-btn-normal layui-btn-mini">展示</span>
                    {else/}
                    <span class="layui-btn layui-btn-danger layui-btn-mini">隐藏</span>
                    {/eq}
                </td>
                <td>{$vo.create_time}</td>
                <td>{$vo.update_time}</td>
                <td class="td-manage">
                    <button class="layui-btn layui-btn-radius layui-btn-sm" onclick="x_admin_show('编辑网站','/{$Think.ADMIN_ROUT_PREFIX}/web-edit?id={$vo.web_id}',800,700)">
                        编辑
                    </button>
                </td>
            </tr>
            {/volist}
            {/if}
            </tbody>
        </table>
        {$page}

    </div>
</div>

<a href="#" class="to-top"><i class="layui-icon" style="font-size: 30px">&#xe68e;</i></a>
<script type="text/javascript" src="/static/common/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/common/js/jquery.toTop.min.js"></script>
<script type="text/javascript" src="/static/admin/lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="/static/admin/js/xadmin.js"></script>
<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="/static/common/js/html5.min.js"></script>
<script src="/static/common/js/respond.min.js"></script>
<![endif]-->
</body>

{include file="common/comm_bottom" /}